﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using GtsServer.DAL;
using GtsServer.Common;

namespace GtsServer.Service.WCF
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的类名“LogMsmqService”。
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class MsmqSqlService : IMsmqSqlService
    {
        public void EditRobotTaskScore(int taskID, int userID, int score)
        {
            TaskRobotSettingDAL dal = new TaskRobotSettingDAL();
            try
            {
                dal.EditRobotScore(taskID, userID, score);
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog(ex);
            }
        }
    }
}
